#e
#Title[`mʏeQ-Normal-]
#Text[]
#ScriptVersion[2]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let pet = 0;
 let bet = 0;
 let angle = 0;
 let angle2 = 0;
 let angle3 = 0;
 let row = 0;
 let row2 = 0;
 let rowt = 0;

 @Initialize {
  SetX(GetCenterX);
  SetY(GetCenterY - 120);
  SetLife(3000);
  LoadGraphic(img);
  SetTexture(img);
  SetGraphicRect(64, 0, 128, 64);
  Tmagic;
 }

 @MainLoop {
  SetCollisionA(GetX, GetY, 24);
  SetCollisionB(GetX, GetY, 24);

  pet += 1;
  bet += 1;
  if(pet == 25) {
   loop(12) {
    PlaySE(shotSE);
    CreateShot01(GetX, GetY, 2, angle + row, BLUE11, 10);
    angle += 30;
   }
   row += 4;
  }
  if(pet == 25) {
   loop(12) {
    PlaySE(shotSE);
    CreateShot01(GetX, GetY, 2, angle2 + row2, AQUA11, 10);
    angle2 += 30;
   }
   row2 -= 4;
   pet = 0;
  }
  if(bet == 40) {
   loop(20) {
    PlaySE(shotSE);
    CreateShot01(GetX, GetY, 1, angle3 + rowt, BLUE05, 0);
    angle3 += 18;
   }
   rowt = rand(0, 18);
   bet = 0;
  }

 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

task Tmagic{
boss_magic_circle;
}
#include_function ".\ϐW.txt"
#include_function ".\functions.txt"
}